-- GENERATED SPELL FOR [Ziggurat Protector] --


function spell0_12262(pUnit, Event) --@Incapacitating Shout,Self--
pUnit:FullCastSpellOnTarget(18328,pUnit)
pUnit:RegisterEvent('Sorts_12262', 8280, 1)
end

function Sorts_12262(pUnit, Event)
local choix_sorts_12262 = math.random(0, 0)
if choix_sorts_12262 == 0 then
pUnit:RegisterEvent('spell0_12262', 1, 1)
end
end

function mob12262_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_12262', math.random(1500, 3000), 1)
end

function mob12262_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob12262_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob12262_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(12262, 1, 'mob12262_Action')
RegisterUnitEvent(12262, 2, 'mob12262_Leave')
RegisterUnitEvent(12262, 3, 'mob12262_Kill')
RegisterUnitEvent(12262, 4, 'mob12262_Die')
